﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="注册.ascx.cs" Inherits="usercontral_注册" %>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Text="注册新帐户"></asp:Label>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label2" runat="server" Text="用户名："></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    ControlToValidate="TextBox1" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label3" runat="server" Text="密码："></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
    ControlToValidate="TextBox2" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<br />
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label4" runat="server" Text="确认密码："></asp:Label>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
    ControlToValidate="TextBox3" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" 
    ControlToCompare="TextBox2" ControlToValidate="TextBox3" 
    ErrorMessage="“密码”和“确认密码”必须匹配">密码要一样</asp:CompareValidator>
<br />
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label5" runat="server" Text="电子邮件："></asp:Label>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
    ControlToValidate="TextBox4" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
    ControlToValidate="TextBox4" ErrorMessage="电子邮件格式不正确！！" 
    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">格式错误！</asp:RegularExpressionValidator>
<br />
<asp:Label ID="Label6" runat="server" Text="安全提示问题："></asp:Label>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
    ControlToValidate="TextBox5" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<br />
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label7" runat="server" Text="安全答案："></asp:Label>
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
    ControlToValidate="TextBox6" ErrorMessage="必填项">*</asp:RequiredFieldValidator>
<br />
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="创建新用户" />

